﻿using System;
using System.Threading.Tasks;
using Microsoft.Owin;
using Owin;
using Microsoft.AspNet.SignalR;
using STT.Connection;

[assembly: OwinStartup(typeof(STT.Admin.Startup))]

namespace STT.Admin
{
    public class Startup
    {
        public void Configuration(IAppBuilder app)
        {
            GlobalHost.HubPipeline.AddModule(new ErrorHandlingPipelineModule()); 
            var hubConfiguration = new HubConfiguration();
            hubConfiguration.EnableDetailedErrors = true;
            hubConfiguration.EnableJavaScriptProxies = true;

            //GlobalHost.DependencyResolver.UseSqlServer(ConnectionString.Text);

            app.MapSignalR(hubConfiguration);            
        }
    }
}
